import http from '@/utils'

// 到访
class Visit {
    // 获取列表
    getList(reload) {
        let url = '/visit/index';
        return http.get(url, reload)
    }
    // 创建到访
    createContent(reload) {
      let url = '/visit/create';
      return http.post(url, reload)
    }
    // 编辑到访
    editContent(reload) {
      let url = '/visit/edit';
      return http.post(url, reload)
    }
    // 到访详情
    getContentDetail(reload) {
      let url = '/visit/detail';
      return http.get(url, reload)
    }
    // 删除
    deleteContent(reload) {
      let url = '/visit/delete';
      return http.post(url, reload)
    }
    // 更新
    updateOnlyfield(reload) {
      let url = '/visit/onlyfield';
      return http.post(url, reload)
    }
}

export default new Visit()